﻿#ifndef ANIMATIONPARSEHEX_H
#define ANIMATIONPARSEHEX_H

#include <QTimer>
#include "animationState.h"
#include "CommonHelper.h"
#include "debugLog.h"
#include "syringeCalculator.h"

extern QString expConsumablesType;

// 解析下位机的指令，操作动画
class AnimationParseHEX
{
public:
    AnimationParseHEX();

    bool startParsing(AnimationState* state, QStringList instrunction);

    bool parsingSyringe(AnimationState* state, QStringList instrunction);
    bool parsingValve(AnimationState* state, QStringList instrunction);
    bool parsingWheel(AnimationState* state, QStringList instrunction);
    bool parsingHatPush(AnimationState* state, QStringList instrunction);
    bool parsingHatPress(AnimationState* state, QStringList instrunction);

    bool parsingMotor(AnimationState* state, QStringList instruction);



    QString     lastInstruction;

};

#endif  // ANIMATIONPARSEHEX_H
